package br.com.californiahotel.client.viewControler.locacao;

import br.com.californiahotel.client.architecture.viewController.MaintenanceView;
import br.com.californiahotel.client.viewControler.locacao.LocacaoController.Display;

import com.smartgwt.client.widgets.grid.ListGridField;
import com.smartgwt.client.widgets.toolbar.ToolStrip;
import com.smartgwt.client.widgets.toolbar.ToolStripButton;

public class LocacaoView extends MaintenanceView implements Display {

	private ToolStripButton toolStripDespesasButton;

	public LocacaoView() {
	}

	@Override
	protected void mountGrid() {
		getGrid().setFields(new ListGridField[] {
				new ListGridField("hospede", "Hospede"),
				new ListGridField("apto", "Apartamento")});

	}
	
	@Override
	protected ToolStrip newToolStrip() {
		ToolStrip newToolStrip = super.newToolStrip();
		toolStripDespesasButton = new ToolStripButton("Despesas");
		newToolStrip.addButton(toolStripDespesasButton);
		return newToolStrip;
	}

	@Override
	public ToolStripButton getDespesasButton() {
		return toolStripDespesasButton;
	}

}
